﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace FacialClub.Models.Entities
{
    /// <summary>
    /// NewsEvent
    /// </summary>
    [Bind(Include = "Title,Description,PostedDate,IsActive,UserCreated,CreatedDate,UserModified,ModifiedDate")]
    [MetadataType(typeof (NewsEventMetaData))]
    public partial class NewsEvent
    {
        #region Nested type: NewsEventMetaData

        /// <summary>
        /// News Event Meta Data for Validation
        /// </summary>
        [Bind(Exclude = "NewsEventId")]
        public class NewsEventMetaData
        {
            /// <summary>
            /// NotificationId
            /// </summary>
            [ScaffoldColumn(false)]
            public object NewsEventId { get; set; }

            /// <summary>
            /// News Event Title
            /// </summary>
            [Required(ErrorMessage = "News/Event Title is required")]
            [StringLength(160)]
            [DisplayName("Title")]
            public string Title { get; set; }

            /// <summary>
            /// News Event Description
            /// </summary>
            [Required(ErrorMessage = "News/Event Description is required")]
            [DisplayName("Description")]
            [UIHint("Wysiwyg")]
            public string Description { get; set; }

            /// <summary>
            /// Posted Date
            /// </summary>
            public DateTime PostedDate { get; set; }

            /// <summary>
            /// Status of the News Event
            /// </summary>
            public bool IsActive { get; set; }

            /// <summary>
            /// User Created
            /// </summary>
            public DateTime UserCreated { get; set; }

            /// <summary>
            /// Creation Date
            /// </summary>
            public DateTime CreatedDate { get; set; }

            /// <summary>
            /// User Modified
            /// </summary>
            public DateTime UserModified { get; set; }

            /// <summary>
            /// Modified Date
            /// </summary>
            public DateTime ModifiedDate { get; set; }
        }

        #endregion
    }
}